<div class="am-u-sm-12 widget main-w">
	<ol class="am-breadcrumb">
		<li><a href="{:url('/admin/index')}">首页</a></li>
		<li><a href="{:url('index')}">异地调度管理</a></li>
		<li class="am-active">查看订单</li>
	</ol>
	<div class="am-u-sm-12 cl-p margin_bottom_10">
		<form class="am-form-inline tpl-form-border-form" method="get" action="">
			<div class="am-form-group am-u-sm-2 ">
				<div class="am-u-sm-12 cl-p">
					<input type="text" class="am-form-field" name="order_no" placeholder="请输入订单号" value="{$Think.get.order_no}">
				</div>
			</div>
			
			<div class="am-form-group am-u-sm-2 ">
				<div class="am-u-sm-12 cl-p">
					<div class="am-u-sm-12 cl-p po_relative">
						 <input type="text" class="am-form-field" name="company_name" placeholder="请输入公司/单位名称" value="{$Think.get.company_name}">
					</div>
				</div>
			</div>
			<div class="am-form-group am-u-sm-3">
				<div class="am-u-sm-3 cl-p">
					<select class="orderertype" style="height: 33px;">
						<option value="1">用车人</option>
						<option value="2">预定人</option>
					</select>
				</div>
				<div class="am-u-sm-9 cl-p">
					<div class="am-u-sm-6 cl-p">
						<input type="text" class="am-form-field passenger" name="name" placeholder="请输入名称" value="{$Think.get.name}">
						<!--<input type="hidden" name="passenger_name" class="tpl-form-no-bg orderer" placeholder="请输入名称">-->
					</div>
					<div class="am-u-sm-6 cl-p">
						<input type="number" name="phone" class="am-form-field" placeholder="手机号" value="{$Think.get.phone}"/>
					</div>
				</div>
			</div>
			<div class="am-form-group am-u-sm-2">
				<select name="state">
					<option value="">全部-订单状态</option>
					<option {$Think.get.state==1?selected:''} value="1">待审批</option>
					<option {$Think.get.state==2?selected:''}  value="2">已批准</option>
					<option {$Think.get.state==3?selected:''}  value="3">已拒绝</option>
					<option {$Think.get.state==4?selected:''}  value="4">待用车</option>
					<option {$Think.get.state==5?selected:''}  value="5">已派车</option>
					<option {$Think.get.state==6?selected:''}  value="6">接驾中</option>
					<option {$Think.get.state==7?selected:''}  value="7">已到达出发地</option>
					<option {$Think.get.state==8?selected:''}  value="8">已到达目的地</option>
					<option {$Think.get.state==9?selected:''}  value="9">待支付</option>
					<option {$Think.get.state==10?selected:''}  value="10">待评价</option>
					<option {$Think.get.state==11?selected:''}  value="11">已完成</option>
					<option {$Think.get.state==12?selected:''}  value="12">已取消</option>
					<option {$Think.get.state==13?selected:''}  value="13">已终止</option>
					<option {$Think.get.state==14?selected:''}  value="14">无效</option>
				</select>
			</div>
			<div class="am-form-group am-u-sm-2">
				<button type="submit" class="am-btn am-btn-sm am-btn-primary am-radius" >查询<i class="am-icon-search"></i></button>
				<button type="button" id="more" class="am-btn am-btn-sm am-btn-secondary am-radius" >更多</button>
			</div>
			<div id="showmore" style="display: none;">
				<div class="am-u-sm-12" style="padding:5px 0;">
					<div class="am-u-sm-4">
						<div class="am-u-sm-12 cl-p">
							<input type="hidden" class="am-form-field tpl-form-no-bg order_start" name="order_start" value="{$Think.get.order_start}" placeholder="用车日期起始" data-am-datepicker="" readonly="">
							<input type="hidden" class="am-form-field tpl-form-no-bg order_end" name="order_end" value="{$Think.get.order_end}" placeholder="用车日期结束" data-am-datepicker="" readonly="">
							<input type="text" class="time" placeholder="请输入申请时间" value="{$Think.get.order_start}{if $Think.get.order_end&&$Think.get.order_end} - {/if}{$Think.get.order_end}"/>	
							
						</div>
					</div>
					
					<div class="am-form-group am-u-sm-2">
						<div class="am-u-sm-12 cl-p po_relative">
						 
						</div>
					</div>
					<div class="am-u-sm-6 cl-p">&nbsp;</div>
				</div>
			</div>
		</form>
	</div>
	<div class="am-u-sm-12" >
		<table  class="layui-hide" id="order" lay-filter="order">
			
		</table>
		
		
	
		<div class="am-u-lg-12 am-cf">

			<div class="am-fr">
				<ul class="pagination"></ul>
			</div>
		</div>
						
	</div>
	
</div>
<script type="text/html" id="operation_all">
	<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="showmap">轨迹</a>
</script>
<script type="text/html" id="operation_1">
	<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="dispatch">派车</a>
	<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="close">取消</a>
</script>
<script type="text/html" id="operation_2">
	
	<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="changedriver">改派</a>
	<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="close">取消</a>
</script>

<script>
	var url = '{url("api/driver.test/index)}';
</script>
<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.4.2&key={:config('base.mapkey')}&plugin=AMap.Driving"></script>
<script src="//webapi.amap.com/ui/1.0/main.js?v=1.0.11"></script>